#include"List.h"

int main()
{
	List<int> l1(1, 1);
	l1.push_back(2);
	l1.push_back(3);
	l1.push_back(4);
	l1.push_back(5);
	l1.push_back(6);
	auto it = l1.find(5);
	l1.Insert(it, 100);
	std::cout << *l1.erase(it) << std::endl;
	for (auto& e : l1)
	{
		std::cout << e << " -> ";
	}
	return 0;
}